import qianfan
import os


def qf(content):
    os.environ["QIANFAN_ACCESS_KEY"] = "ALTAK0oKTRK3aDCtOW32QihOSD"
    os.environ["QIANFAN_SECRET_KEY"] = "3c29afc11fee467c8470346fce0795d3"
    chat_comp = qianfan.ChatCompletion()
    resp = chat_comp.do(
        model="ERNIE-Speed-128K", messages=[{"role": "user", "content": content}]
    )
    return resp["body"]["result"]
